package com.feng.system.service;

import com.feng.mbg.domain.SysRole;
import com.feng.mbg.domain.SysUser;
import com.feng.system.dto.UserParam;
import com.feng.system.dto.UserQueryParam;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Set;

/**
 * @author Feng
 * @since 2022/4/15 12:22
 */
public interface UserService {

    List<SysRole> getRolesById(Long id);

    void addUser(UserParam userParam);

    void updateUser(UserParam userParam);

    void deleteUser(Set<Long> ids);

    PageInfo<SysUser> search(UserQueryParam param, Integer pageNum, Integer pageSize);

    void updateAvatar(MultipartFile avatar);
}
